
package instrumentation;

import soot.SootMethod;

public class ConditionIf extends Condition {

	private static final long serialVersionUID = -439884149725011654L;
	ConditionClass clazz;
	public enum ConditionType {
		LT, LE, EQ, NE, GE, GT
	}
	private final ConditionType condType;
	private transient String condition;

	public ConditionIf(ConditionClass clazz,String method,boolean isPrivate,boolean callMethod, int branchId,String condition,  DataType dataType,String callee1, 
						Value v1, ConditionType condType, String callee2,Value v2,String extraInfo) {
		super(branchId,clazz.getCName(),method,isPrivate,callMethod,dataType, callee1,v1, callee2,v2,extraInfo);
		this.clazz=clazz;
		this.condType = condType;
		this.condition = condition;
		clazz.addCondition(this);
	}

	public ConditionType getConditionType() {
		return condType;
	}
	String getCondition() {
		return condition;
	}

}
